<template>
  <div>
    <div class="toast" v-show="isShow">{{message}}</div>
  </div>
</template>

<script>
  export default {
    name: "Toast",
    data(){
      return{
        message:'',
        isShow:false
      }
    }
  }
</script>

<style scoped>
  .toast{
    text-align: center;
    border-radius: 8px;
    color: #ffffff;
    width: 150px;
    height: 45px;
    line-height: 45px;
    position: fixed;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
    background-color: rgba(0,0,0,0.8);
  }
</style>